package com.san.simulation.model.impl;

import java.util.ArrayList;
import java.util.Collections;
import java.util.HashSet;
import java.util.List;
import java.util.Set;

import com.san.simulation.model.api.Element;


public class Model {

	private Set<Element> elements;

	
	
	public Set<Element> getElements() {
		return elements;
	}



	public void setElements(Set<Element> element) {
		this.elements = element;
	}



	public void addElements(List<Element> element) {
		this.elements.addAll(element);
	}
	
	public void addElement(Element element) {
		
		if(elements==null){
			elements= new HashSet<Element>();
		}
		this.elements.add(element);
	}
	
	public List<Element> getElementList(){
		
		List<Element> elementList=new ArrayList<Element>();
		elementList.addAll(elements);
		return elementList;
	}

}
